package com.blt.govdata.filters;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.web.cors.CorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;

/**
 * 防止浏览器缓存页面或请求结果
 * @author Yuwen Chen
 */
@Component
public class NoCacheFilter extends CorsFilter {

    @Autowired()
    public NoCacheFilter(@Qualifier("sspCors") CorsConfigurationSource configSource) {
        super(configSource);
    }
}
